
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>消息记录管理 · Diboot组件文档</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-vuejs-2/vue.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="发送短信消息.html" />
    
    
    <link rel="prev" href="消息模板管理.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                



<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../基础.html">
            
                <a href="../基础.html">
            
                    
                    基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../基础/组件引入.html">
            
                <a href="../基础/组件引入.html">
            
                    
                    组件引入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../基础/SQL初始化.html">
            
                <a href="../基础/SQL初始化.html">
            
                    
                    SQL初始化
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../消息组件.html">
            
                <a href="../消息组件.html">
            
                    
                    消息通知组件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="消息模板管理.html">
            
                <a href="消息模板管理.html">
            
                    
                    消息模板管理
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.2" data-path="消息记录管理.html">
            
                <a href="消息记录管理.html">
            
                    
                    消息记录管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="发送短信消息.html">
            
                <a href="发送短信消息.html">
            
                    
                    发送短信消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="发送邮件消息.html">
            
                <a href="发送邮件消息.html">
            
                    
                    发送邮件消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../文件组件.html">
            
                <a href="../文件组件.html">
            
                    
                    文件处理组件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../文件组件/文件处理工具.html">
            
                <a href="../文件组件/文件处理工具.html">
            
                    
                    文件处理工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../文件组件/Excel数据导入.html">
            
                <a href="../文件组件/Excel数据导入.html">
            
                    
                    Excel数据导入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../文件组件/Excel数据导出.html">
            
                <a href="../文件组件/Excel数据导出.html">
            
                    
                    Excel数据导出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../文件组件/音频文件处理.html">
            
                <a href="../文件组件/音频文件处理.html">
            
                    
                    音频文件处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../文件组件/图片文件处理.html">
            
                <a href="../文件组件/图片文件处理.html">
            
                    
                    图片文件处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../文件组件/压缩文件处理.html">
            
                <a href="../文件组件/压缩文件处理.html">
            
                    
                    压缩文件处理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>



                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                

                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >消息记录管理</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x7BA1;&#x7406;"><b>1. </b>&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x7BA1;&#x7406;</a></li><ul><li><span class="title-icon "></span><a href="#&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x8868;"><b>1.1. </b>&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x8868;</a></li><li><span class="title-icon "></span><a href="#&#x6D88;&#x606F;&#x7BA1;&#x7406;"><b>1.2. </b>&#x6D88;&#x606F;&#x7BA1;&#x7406;</a></li><ul><li><span class="title-icon "></span><a href="#&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x9875;&#x9762;"><b>1.2.1. </b>&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x9875;&#x9762;</a></li><li><span class="title-icon "></span><a href="#&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x63A5;&#x53E3;"><b>1.2.2. </b>&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x63A5;&#x53E3;</a></li></ul><li><span class="title-icon "></span><a href="#&#x53D1;&#x9001;&#x6D88;&#x606F;"><b>1.3. </b>&#x53D1;&#x9001;&#x6D88;&#x606F;</a></li></ul></ul></div><a href="#&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x7BA1;&#x7406;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x7BA1;&#x7406;"><a name="&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x7BA1;&#x7406;" class="anchor-navigation-ex-anchor" href="#&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x7BA1;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x7BA1;&#x7406;</h1>
<h2 id="&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x8868;"><a name="&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x8868;" class="anchor-navigation-ex-anchor" href="#&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x8868;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. &#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x8868;</h2>
<ul>
<li>&#x5728;&#x6D88;&#x606F;&#x7EC4;&#x4EF6;&#x521D;&#x6B21;&#x542F;&#x52A8;&#x65F6;&#xFF0C;&#x5C06;&#x65B0;&#x5EFA;<a href="">message</a>&#x6570;&#x636E;&#x8868;&#xFF0C;&#x7528;&#x6765;&#x5B58;&#x50A8;&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x3002;</li>
<li><a href="">type</a> &#x8868;&#x793A;&#x6D88;&#x606F;&#x7C7B;&#x578B;&#xFF0C;&#x77ED;&#x6D88;&#x606F;&#x4E3A;<a href="">SMS</a>&#xFF0C;&#x90AE;&#x4EF6;&#x6D88;&#x606F;&#x4E3A;<a href="">EMAIL</a>&#x7B49;&#xFF0C;&#x4E5F;&#x53EF;&#x81EA;&#x5B9A;&#x4E49;&#x76F8;&#x5173;&#x6D88;&#x606F;&#x7C7B;&#x578B;<a href="">(&#x5FC5;&#x586B;)</a> &#x3002;</li>
<li><a href="">tmpl_id</a> &#x6D88;&#x606F;&#x6A21;&#x677F;id&#xFF0C;&#x5B58;&#x50A8;&#x6240;&#x4F9D;&#x636E;&#x6D88;&#x606F;&#x6A21;&#x677F;&#x7684;id<a href="">(&#x5FC5;&#x586B;)</a>&#x3002;</li>
<li><a href="">business_type</a> &#x5173;&#x8054;&#x4E1A;&#x52A1;&#x7C7B;&#x578B;&#x3002;</li>
<li><a href="">business_id</a> &#x5173;&#x8054;&#x4E1A;&#x52A1;id&#x3002;</li>
<li><a href="">sender</a> &#x53D1;&#x9001;&#x4EBA;&#x3002;</li>
<li><a href="">receiver</a> &#x63A5;&#x6536;&#x4EBA;<a href="">&#x5FC5;&#x586B;</a>&#x3002;</li>
<li><a href="">title</a> &#x53D1;&#x9001;&#x7684;&#x6D88;&#x606F;&#x6807;&#x9898;&#x3002;</li>
<li><a href="">content</a> &#x53D1;&#x9001;&#x7684;&#x6D88;&#x606F;&#x5185;&#x5BB9;&#x3002;</li>
<li><a href="">url</a> &#x53D1;&#x9001;&#x7684;&#x94FE;&#x63A5;&#x6D88;&#x606F;&#x4E2D;&#x7684;&#x94FE;&#x63A5;&#x3002;</li>
<li><a href="">status</a> &#x6D88;&#x606F;&#x53D1;&#x9001;&#x72B6;&#x6001;<a href="">&#x5FC5;&#x586B;</a>&#x3002;</li>
<li><a href="">response</a> &#x53D1;&#x9001;&#x7ED3;&#x679C;&#x7684;&#x54CD;&#x5E94;&#x3002;</li>
<li><a href="">extdata</a> &#x5176;&#x4ED6;&#x6570;&#x636E;&#xFF0C;&#x5B58;&#x653E;json&#x5B57;&#x7B26;&#x4E32;&#x3002;</li>
</ul>
<h2 id="&#x6D88;&#x606F;&#x7BA1;&#x7406;"><a name="&#x6D88;&#x606F;&#x7BA1;&#x7406;" class="anchor-navigation-ex-anchor" href="#&#x6D88;&#x606F;&#x7BA1;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x6D88;&#x606F;&#x7BA1;&#x7406;</h2>
<h3 id="&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x9875;&#x9762;"><a name="&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x9875;&#x9762;" class="anchor-navigation-ex-anchor" href="#&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x9875;&#x9762;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.1. &#x6D88;&#x606F;&#x7BA1;&#x7406;&#x9875;&#x9762;</h3>
<ul>
<li>&#x57FA;&#x4E8E;diboot-web&#x6784;&#x5EFA;&#x7684;&#x540E;&#x53F0;&#x7BA1;&#x7406;&#x9879;&#x76EE;&#x4E2D;&#xFF0C;&#x81EA;&#x5E26;&#x4E86;&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x7BA1;&#x7406;&#x529F;&#x80FD;&#xFF0C;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8BBF;&#x95EE;<a href="">/message/</a>&#x6765;&#x8BBF;&#x95EE;&#x5DF2;&#x6709;&#x6D88;&#x606F;&#x8BB0;&#x5F55;&#x3002;</li>
<li>&#x5728;&#x9879;&#x76EE;&#x521D;&#x59CB;&#x5316;&#x4E4B;&#x540E;&#xFF0C;&#x9875;&#x9762;&#x6587;&#x4EF6;&#x4E5F;&#x5C06;&#x81EA;&#x52A8;&#x62F7;&#x8D1D;&#x5230;&#x60A8;&#x7684;&#x7BA1;&#x7406;&#x540E;&#x53F0;&#x9879;&#x76EE;&#x4E2D;&#xFF0C;&#x60A8;&#x4E5F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x66F4;&#x6539;&#x62F7;&#x8D1D;&#x540E;&#x7684;&#x9875;&#x9762;&#x6587;&#x4EF6;&#xFF0C;&#x6765;&#x4E3A;&#x60A8;&#x7684;&#x4E1A;&#x52A1;&#x9700;&#x6C42;&#x505A;&#x76F8;&#x5173;&#x66F4;&#x6539;&#x3002;</li>
</ul>
<h3 id="&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x63A5;&#x53E3;"><a name="&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x63A5;&#x53E3;" class="anchor-navigation-ex-anchor" href="#&#x6D88;&#x606F;&#x7BA1;&#x7406;&#x63A5;&#x53E3;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.2. &#x6D88;&#x606F;&#x7BA1;&#x7406;&#x63A5;&#x53E3;</h3>
<ul>
<li>&#x5728;&#x76F8;&#x5173;&#x7684;&#x7C7B;&#x4E2D;&#x6CE8;&#x5165; <a href="">MessageTmplService</a>&#xFF0C;&#x5982;&#x4E0B;&#xFF1A;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@Autowired</span>
<span class="hljs-keyword">private</span> MessageService messageService;
</code></pre>
<ul>
<li><a href="">MessageService</a> &#x9664;&#x4E86;&#x62E5;&#x6709;BaseService&#x4E2D;&#x7684;&#x589E;&#x5220;&#x6539;&#x67E5;&#x7B49;&#x63A5;&#x53E3;&#x5916;&#xFF0C;&#x8FD8;&#x5177;&#x6709;&#x4EE5;&#x4E0B;&#x63A5;&#x53E3;&#xFF1A;</li>
</ul>
<h2 id="&#x53D1;&#x9001;&#x6D88;&#x606F;"><a name="&#x53D1;&#x9001;&#x6D88;&#x606F;" class="anchor-navigation-ex-anchor" href="#&#x53D1;&#x9001;&#x6D88;&#x606F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. &#x53D1;&#x9001;&#x6D88;&#x606F;</h2>
<ul>
<li><a href="">boolean createAndSendMsg(Message msg)</a> &#x4FDD;&#x5B58;&#x5E76;&#x53D1;&#x9001;&#x6D88;&#x606F;&#xFF0C;&#x5C06;&#x6839;&#x636E;&#x6D88;&#x606F;&#x7684;type&#x6765;&#x4F7F;&#x7528;&#x4E0D;&#x540C;&#x7684;&#x65B9;&#x5F0F;&#x53D1;&#x9001;&#x6D88;&#x606F;&#x3002;&#x9ED8;&#x8BA4;&#x5B9E;&#x73B0;&#x76EE;&#x524D;&#x652F;&#x6301;<a href="">SMS</a>&#x53D1;&#x9001;&#x77ED;&#x4FE1;&#x6D88;&#x606F;&#xFF0C;<a href="">EMAIL</a>&#x53D1;&#x9001;&#x90AE;&#x4EF6;&#x6D88;&#x606F;&#x3002;</li>
<li><a href="">boolean sendMsg(Message msg)</a> &#x4EC5;&#x4EC5;&#x53D1;&#x9001;&#x6D88;&#x606F;&#xFF0C;&#x540C;&#x4E0A;&#x3002;</li>
<li><a href="">boolean sendVerifyCode2Phone(String cellphone)</a> &#x53D1;&#x9001;&#x77ED;&#x4FE1;&#x9A8C;&#x8BC1;&#x7801;&#xFF0C;&#x53D1;&#x9001;&#x9A8C;&#x8BC1;&#x7801;&#x540E;&#xFF0C;&#x8BE5;&#x63A5;&#x53E3;&#x7684;&#x9ED8;&#x8BA4;&#x5B9E;&#x73B0;&#x4E2D;&#x5C06;&#x5728;&#x4FDD;&#x5B58;&#x8BE5;&#x9A8C;&#x8BC1;&#x7801;&#x540E;&#x53D1;&#x9001;&#x9A8C;&#x8BC1;&#x7801;&#xFF0C;&#x7559;&#x505A;&#x9A8C;&#x8BC1;&#x7801;&#x6821;&#x9A8C;&#x4E4B;&#x7528;&#x3002;</li>
<li><a href="">boolean isVerifyCodeValid(String cellphone, String verifyCode)</a> &#x6821;&#x9A8C;&#x624B;&#x673A;&#x9A8C;&#x8BC1;&#x7801;&#x662F;&#x5426;&#x5339;&#x914D;&#xFF0C;&#x7528;&#x4F5C;&#x8F93;&#x5165;&#x9A8C;&#x8BC1;&#x7801;&#x4E4B;&#x540E;&#x7684;&#x6821;&#x9A8C;&#x4F7F;&#x7528;&#x3002;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                

            </div>

            
                
                <a href="消息模板管理.html" class="navigation navigation-prev " aria-label="Previous page: 消息模板管理">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="发送短信消息.html" class="navigation navigation-next " aria-label="Next page: 发送短信消息">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"消息记录管理","level":"1.3.2","depth":2,"next":{"title":"发送短信消息","level":"1.3.3","depth":2,"path":"消息组件/发送短信消息.md","ref":"消息组件/发送短信消息.md","articles":[]},"previous":{"title":"消息模板管理","level":"1.3.1","depth":2,"path":"消息组件/消息模板管理.md","ref":"消息组件/消息模板管理.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","sharing-plus","anchor-navigation-ex","theme-vuejs-2"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"theme-vuejs-2":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"mode":"float","pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"showLevel":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right","showGoTop":true,"isShowTocTitleIcon":true,"printLog":false,"multipleH1":true,"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false}},"sharing":{"qq":true,"all":["weibo","qq","linkedin","qzone","douban"],"douban":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Diboot组件文档","gitbook":"*","description":"Diboot组件文档"},"file":{"path":"消息组件/消息记录管理.md","mtime":"2018-11-08T08:51:40.452Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-10T15:13:00.038Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

